﻿<!DOCTYPE html>
<html lang="en">
<#include "../include/resource-head.ftl"/>
<body>
<#include "../include/common-top.ftl"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
    <#include "../include/common-menu.ftl"/>
        <div class="main-content">
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="form-search">
                            <form role="form" class="form-inline clearfix" id="form2" action="">
                                <div class="input-group col-xs-2">
                                    <span class="input-group-addon">店铺名</span>
                                    <input type="text" class="form-control" name="docname" value="${shopname!}">
                                </div>

                                <div class="input-group col-xs-2">
                                    <span class="input-group-addon">商品名</span>
                                    <input type="text" class="form-control" name="docno" value="${goodsname!}">
                                </div>

                            </form>
                            <div class="form-tool btn-group">
                                <button class="btn btn-sm btn-success" form="form2">
                                    <i class="icon-search"></i>搜索
                                </button>
<#if sessionUser.type=='employee'>
                                <button class="btn btn-sm btn-primary" onclick="location.href='/sale/add'">
                                    <i class="icon-plus"></i>录入
                                </button>
</#if>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>店铺名</th>
                                    <th>商品名</th>
                                    <th>数量</th>
                                    <th>添加时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                <#list pageInfo.list as item>
                                <tr>
                                    <td>${item.shopname!}</td>
                                    <td>${item.goodsname!}</td>
                                    <td>${item.count!}</td>
                                    <td>${item.addtime?string('yyyy-MM-dd HH:mm:ss')}</td>

                                </tr>
                                </#list>
                                </tbody>
                            </table>
                        <#include "../include/table-page.ftl"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<#include "../include/resource-script.ftl"/>

</html>

